package com.github.jiangxch.rpc.transport;


import java.net.InetSocketAddress;

/**
 * @author: jiangxch
 * @date: 2021/2/20 11:06
 */
public interface Endpoint {
    /**
     * 获取 client 地址
     * @return
     */
    InetSocketAddress getLocalSocketAddress();
    
    void start();
    
    void close();
    
    boolean isClosed();
}
